﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;

[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class ConfigService : IConfigService
{
    public string GetSetting(string settingKey)
    {
        return ConfigurationManager.AppSettings[settingKey];
    }


    public string GetFlowDataUrl()
    {
        if (GetSetting("useLocalFlowData") == "true")
            return GetSetting("flowDataUrl-Local");
        else
            return GetSetting("flowDataUrl-Remote");
    }
}
